<h2 aling="center" class="ourCompany-hdr"><%= link_to image_tag("/images/add_cate.png", :title => "New Machine", :border=>0), new_machine_path %>
  <%= t('machine.new') %></h2>

<table>
  <tr>
    <td scope="col"><li><img alt="key"  src="/images/maps.png" width="25px" height="25px"></img> <%= link_to t('machine.viewall') , :controller => :machines, :action => :mapma %></li></td>


  </tr>

</table>
<table width="200" align="center" border="0" cellspacing="5" cellpadding="5">

	    <tr>
              <th nowrap="nowrap" scope="col"></th>
              <th nowrap="nowrap" scope="col"><%= t('machine.status') %></th>
	      <th nowrap="nowrap" scope="col"><%= t('machine.state') %></th>
	      <th nowrap="nowrap" scope="col"><%= t('machine.brand') %></th>
	      <th nowrap="nowrap" scope="col"><%= t('machine.os') %></th>
        </tr>
	    <tr>
              <% @machines.each do |machine| %>
              <td scope="col"><img src="/images/machine32.png" width="32" height="32" /></td>
	      <td nowrap="nowrap" scope="col"><%=h machine.status %></td>
	      <td nowrap="nowrap" scope="col"><%=h machine.state %></td>
	      <td nowrap="nowrap" scope="col"><%=h machine.brand %></td>
	      <td nowrap="nowrap" scope="col"><%=h machine.os %></td>
              <td><%= link_to image_tag("/images/eye.png", :title => t('machine.show'), :border=>0), machine %></td>
              <td><%= link_to image_tag("/images/edit_event.png", :title => t('machine.edit'), :border=>0), edit_machine_path(machine) %></td>
                <td><td><%= link_to 'Destroy', machine, :confirm => 'Are you sure? All association  will be deleted', :method => :delete %></td></td>
        </tr>
        <% end %>
      </table>
